import { HttpException, HttpStatus } from '@nestjs/common';

export class BusinessException extends HttpException {
  constructor({ code = 500, msg = '服务器内部异常', data = null } = {}) {
    super({ code, msg, data }, HttpStatus.OK);
  }
}
